#include "BlockMoveAbilityVisitor.h"
#include "BlockMoveAbility.h"


BlockMoveAbilityVisitor::BlockMoveAbilityVisitor(): found(false)
{
}

BlockMoveAbilityVisitor::~BlockMoveAbilityVisitor()
{
}

void BlockMoveAbilityVisitor::Visit(BlockMoveAbility& ability)
{
	found = true;
	blockDirection = ability.BlockDirection();
}

bool BlockMoveAbilityVisitor::FoundAbility() const
{
	return found;
}

const Direction& BlockMoveAbilityVisitor::BlockDirection() const
{
	return blockDirection;
}

